package com.huitone.gddw.service.dto;

import com.huitone.gddw.common.excel.ColToProperty;
import com.huitone.gddw.common.excel.TabCol;
import com.huitone.gddw.dao.entity.UserRouteRule;

/**
 * 号段路由规则 DTO 对象
 * @author wuluodan
 *
 */
public class UserRouteRuleDTO {

	@ColToProperty
	@TabCol(Index = 1, title = "序号", width = "")
	private Integer seq;
	
	private String ruleId;
	
	@ColToProperty
	@TabCol(Index = 2, title = "号段名称", width = "90")
	private String ruleName;

	@ColToProperty
	@TabCol(Index = 3, title = "号段", width = "")
    private String sectionNo;
    
	private String province;
	
	@ColToProperty
	@TabCol(Index = 4, title = "归属省份", width = "90")
    private String provinceName;
    
	private String mobilCorp;
	
	@ColToProperty
	@TabCol(Index = 5, title = "归属运营商", width = "90")
    private String mobilCorpName;
    
	private String status;
	
	@ColToProperty
	@TabCol(Index = 6, title = "状态", width = "")
	private String statusStr;
    
	@ColToProperty
	@TabCol(Index = 7, title = "说明", width = "150")
    private String desc;

    public UserRouteRuleDTO() {}
    
    public UserRouteRuleDTO(UserRouteRule entity) {
    	this.setRuleId(entity.getRuleId());
    	this.setRuleName(entity.getRuleName());
    	this.setSectionNo(entity.getSectionNo());
    	this.setProvince(entity.getProvince());
    	this.setMobilCorp(entity.getMobilCorp());
    	this.setStatus(entity.getStatus());
    	this.setDesc(entity.getDesc());
    }
    
	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getRuleId() {
		return ruleId;
	}

	public void setRuleId(String ruleId) {
		this.ruleId = ruleId;
	}

	public String getRuleName() {
		return ruleName;
	}

	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}

	public String getSectionNo() {
		return sectionNo;
	}

	public void setSectionNo(String sectionNo) {
		this.sectionNo = sectionNo;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getMobilCorp() {
		return mobilCorp;
	}

	public void setMobilCorp(String mobilCorp) {
		this.mobilCorp = mobilCorp;
	}

	public String getMobilCorpName() {
		return mobilCorpName;
	}

	public void setMobilCorpName(String mobilCorpName) {
		this.mobilCorpName = mobilCorpName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getStatusStr() {
		if (null == this.status) {
			return "未知";
		}
		if (this.status.equals("1")) {
			return "有效";
		}
		if (this.status.equals("0")) {
			return "失效";
		}
		return "未知";
	}

	public void setStatusStr(String statusStr) {
		this.statusStr = statusStr;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
}
